package c.c.c.a.o;

import android.content.Context;

/* compiled from: LaunchScanner */
public final class c implements Runnable {
    public Context a;

    public c(Context context) {
        this.a = context;
    }

    /* JADX WARNING: Missing exception handler attribute for start block: B:27:0x0067 */
    /* JADX WARNING: Removed duplicated region for block: B:18:0x004d  */
    /* JADX WARNING: Missing exception handler attribute for start block: B:13:0x0023 */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Can't wrap try/catch for region: R(14:0|1|2|3|4|5|(1:7)(2:8|(1:12))|13|14|15|(6:18|19|20|(2:22|57)(3:23|24|58)|55|16)|56|70|(1:(1:65))) */
    /* JADX WARNING: Can't wrap try/catch for region: R(6:27|28|29|(6:32|33|34|(2:36|62)(3:37|38|63)|60|30)|61|71) */
    /* JADX WARNING: Missing block: B:28:?, code skipped:
            r3 = c.c.c.a.n.a;
            r3 = c.c.c.a.n.d;
     */
    /* JADX WARNING: Missing block: B:29:0x006b, code skipped:
            r5 = c.c.c.a.i.j.b();
            r3 = new java.util.ArrayList(3);
            r3.add(new c.c.c.a.k.b(r5, 0, 15000));
            r3.size();
            r2 = c.c.c.a.n.a;
            r2 = c.c.c.a.n.d;
            r2 = r3.iterator();
     */
    /* JADX WARNING: Missing block: B:31:0x0090, code skipped:
            if (r2.hasNext() != false) goto L_0x0092;
     */
    /* JADX WARNING: Missing block: B:32:0x0092, code skipped:
            r3 = (c.c.c.a.k.a) r2.next();
     */
    /* JADX WARNING: Missing block: B:34:?, code skipped:
            r4 = r3.b;
     */
    /* JADX WARNING: Missing block: B:35:0x009c, code skipped:
            if (r4 > 0) goto L_0x009e;
     */
    /* JADX WARNING: Missing block: B:36:0x009e, code skipped:
            r3.a.postDelayed(r3, r4);
     */
    /* JADX WARNING: Missing block: B:37:0x00a4, code skipped:
            r3.a.post(r3);
     */
    /* JADX WARNING: Missing block: B:42:0x00ae, code skipped:
            r5 = c.c.c.a.i.j.b();
            r10 = new java.util.ArrayList(3);
            r10.add(new c.c.c.a.k.b(r5, 0, 15000));
            r10.size();
            r2 = c.c.c.a.n.a;
            r2 = c.c.c.a.n.d;
            r2 = r10.iterator();
     */
    /* JADX WARNING: Missing block: B:44:0x00d3, code skipped:
            if (r2.hasNext() != false) goto L_0x00d5;
     */
    /* JADX WARNING: Missing block: B:45:0x00d5, code skipped:
            r4 = (c.c.c.a.k.a) r2.next();
     */
    /* JADX WARNING: Missing block: B:47:?, code skipped:
            r5 = r4.b;
     */
    /* JADX WARNING: Missing block: B:48:0x00df, code skipped:
            if (r5 > 0) goto L_0x00e1;
     */
    /* JADX WARNING: Missing block: B:49:0x00e1, code skipped:
            r4.a.postDelayed(r4, r5);
     */
    /* JADX WARNING: Missing block: B:50:0x00e7, code skipped:
            r4.a.post(r4);
     */
    /* JADX WARNING: Missing block: B:71:?, code skipped:
            return;
     */
    public void run() {
        /*
        r12 = this;
        r0 = 0;
        r2 = 3;
        r3 = new c.c.c.a.i.e;	 Catch:{ all -> 0x0067 }
        r4 = r12.a;	 Catch:{ all -> 0x0067 }
        r3.m1078init(r4);	 Catch:{ all -> 0x0067 }
        r5 = 0;
        r6 = "connectivity";
        r4 = r4.getSystemService(r6);	 Catch:{ Exception -> 0x0023 }
        r4 = (android.net.ConnectivityManager) r4;	 Catch:{ Exception -> 0x0023 }
        if (r4 != 0) goto L_0x0016;
    L_0x0015:
        goto L_0x0023;
    L_0x0016:
        r4 = r4.getActiveNetworkInfo();	 Catch:{ Exception -> 0x0023 }
        if (r4 == 0) goto L_0x0023;
    L_0x001c:
        r4 = r4.isAvailable();	 Catch:{ Exception -> 0x0023 }
        if (r4 == 0) goto L_0x0023;
    L_0x0022:
        r5 = 1;
    L_0x0023:
        r3.b(r5);	 Catch:{ all -> 0x0067 }
        r7 = c.c.c.a.i.j.b();
        r3 = new java.util.ArrayList;
        r3.<init>(r2);
        r2 = new c.c.c.a.k.b;
        r8 = 0;
        r10 = 15000; // 0x3a98 float:2.102E-41 double:7.411E-320;
        r6 = r2;
        r6.m5372init(r7, r8, r10);
        r3.add(r2);
        r3.size();
        r2 = c.c.c.a.n.a;
        r2 = c.c.c.a.n.d;
        r2 = r3.iterator();
    L_0x0047:
        r3 = r2.hasNext();
        if (r3 == 0) goto L_0x00ac;
    L_0x004d:
        r3 = r2.next();
        r3 = (c.c.c.a.k.a) r3;
        r4 = r3.b;	 Catch:{ all -> 0x0065 }
        r6 = (r4 > r0 ? 1 : (r4 == r0 ? 0 : -1));
        if (r6 <= 0) goto L_0x005f;
    L_0x0059:
        r6 = r3.a;	 Catch:{ all -> 0x0065 }
        r6.postDelayed(r3, r4);	 Catch:{ all -> 0x0065 }
        goto L_0x0047;
    L_0x005f:
        r4 = r3.a;	 Catch:{ all -> 0x0065 }
        r4.post(r3);	 Catch:{ all -> 0x0065 }
        goto L_0x0047;
        goto L_0x0047;
    L_0x0067:
        r3 = c.c.c.a.n.a;	 Catch:{ all -> 0x00ad }
        r3 = c.c.c.a.n.d;	 Catch:{ all -> 0x00ad }
        r5 = c.c.c.a.i.j.b();
        r3 = new java.util.ArrayList;
        r3.<init>(r2);
        r2 = new c.c.c.a.k.b;
        r6 = 0;
        r8 = 15000; // 0x3a98 float:2.102E-41 double:7.411E-320;
        r4 = r2;
        r4.m5372init(r5, r6, r8);
        r3.add(r2);
        r3.size();
        r2 = c.c.c.a.n.a;
        r2 = c.c.c.a.n.d;
        r2 = r3.iterator();
    L_0x008c:
        r3 = r2.hasNext();
        if (r3 == 0) goto L_0x00ac;
    L_0x0092:
        r3 = r2.next();
        r3 = (c.c.c.a.k.a) r3;
        r4 = r3.b;	 Catch:{ all -> 0x00aa }
        r6 = (r4 > r0 ? 1 : (r4 == r0 ? 0 : -1));
        if (r6 <= 0) goto L_0x00a4;
    L_0x009e:
        r6 = r3.a;	 Catch:{ all -> 0x00aa }
        r6.postDelayed(r3, r4);	 Catch:{ all -> 0x00aa }
        goto L_0x008c;
    L_0x00a4:
        r4 = r3.a;	 Catch:{ all -> 0x00aa }
        r4.post(r3);	 Catch:{ all -> 0x00aa }
        goto L_0x008c;
        goto L_0x008c;
    L_0x00ac:
        return;
    L_0x00ad:
        r3 = move-exception;
        r5 = c.c.c.a.i.j.b();
        r10 = new java.util.ArrayList;
        r10.<init>(r2);
        r2 = new c.c.c.a.k.b;
        r6 = 0;
        r8 = 15000; // 0x3a98 float:2.102E-41 double:7.411E-320;
        r4 = r2;
        r4.m5372init(r5, r6, r8);
        r10.add(r2);
        r10.size();
        r2 = c.c.c.a.n.a;
        r2 = c.c.c.a.n.d;
        r2 = r10.iterator();
    L_0x00cf:
        r4 = r2.hasNext();
        if (r4 == 0) goto L_0x00ef;
    L_0x00d5:
        r4 = r2.next();
        r4 = (c.c.c.a.k.a) r4;
        r5 = r4.b;	 Catch:{ all -> 0x00ed }
        r7 = (r5 > r0 ? 1 : (r5 == r0 ? 0 : -1));
        if (r7 <= 0) goto L_0x00e7;
    L_0x00e1:
        r7 = r4.a;	 Catch:{ all -> 0x00ed }
        r7.postDelayed(r4, r5);	 Catch:{ all -> 0x00ed }
        goto L_0x00cf;
    L_0x00e7:
        r5 = r4.a;	 Catch:{ all -> 0x00ed }
        r5.post(r4);	 Catch:{ all -> 0x00ed }
        goto L_0x00cf;
        goto L_0x00cf;
    L_0x00ef:
        throw r3;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.c.c.a.o.c.run():void");
    }
}
